import { API_LIST } from '../../../Api/Api'
import { commonTableList } from '../Common/common'
import { Button } from 'antd'

export const A05 = async ({ url, OptionsEvent, ClientData, Permission, actionRef }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()[`getLabMarshallStability`],
        added: `pos${url}`,
        modify: `put${url}`,
        delete: `del${url}`,
        independenceSet: {
            title: '组织机构',
            url: 'getOrgTree',
            data: { IsByUserUuid: 1 },
            type: 'TableNavTree001',
            all: true,
        },
        independence: 'organizationUuid',
        options: [<Button>Excel批量导入</Button>],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'A01',
                title: '序号',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A02',
                title: '姓名',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A03',
                title: '性别',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A04',
                title: '工种',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A05',
                title: '籍贯',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A06',
                title: '身份证',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A07',
                title: '联系电话',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                dataIndex: 'A08',
                title: '备注',
                valueType: 'input',

                rules: true,
                width: 200,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: () => {
                    return []
                },
            },
        ],
    }

    return data
}
